package com.zut.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zut.mapper.SchduleMapper;
import com.zut.pojo.Parents;
import com.zut.pojo.Schdule;
import com.zut.service.SchduleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author schdule
 * @since 2021-06-06
 */
@Service
public class SchduleServiceImpl extends ServiceImpl<SchduleMapper, Schdule> implements SchduleService {

    @Resource
    SchduleMapper schduleMapper;
    @Override
    public List<Schdule> sleSch(int teaid) {
        QueryWrapper<Schdule> wrapper=new QueryWrapper<>();
        wrapper.eq("teaid",teaid);
        List<Schdule> schduleList=schduleMapper.selectList(wrapper);
        return schduleList;
    }
}
